'use strict';
var ReactRedux=require('react-redux');
var NewsOverview=require('../components/NewsOverview.jsx');

class NewsViewer extends React.Component{
    render(){
        console.log('current');
        console.log(this.props);
        return (
            <div>
                {React.createElement(NewsOverview, Object.assign({},this.props,{
                    showDetail: true
                }))}
            </div>
        )
    }
}

function mapStateToProps(state) {

    return Object.assign({}, state.news.getbyid)
}

module.exports= ReactRedux.connect(mapStateToProps)(NewsViewer)
